import config from '../../utils/config';
import apiCreator from '../../utils/apiCreator';

export default function portfolioTrackingAPI(api) {
  return {
    //获取产品组数据
    getProductData: (query) => api.get(`${config.interfaces.type5}portfolio-server/product-group/list-with-all-element`, query),
    //查询产品列表
    queryProuctList: (query) => api.get(`${config.interfaces.type5}portfolio-server/simulationProduct/query-all-product`, query),
    //新增
    getRowInfo: (query) => api.post(`${config.interfaces.type3}monitor/portMonitor`, query),
    //获取指标数据
    getTargetInfo: (query) => api.get(`${config.interfaces.type3}monitor/getRealtimeIndicator`, query),
    //获取区间收益率
    getIncomeTable: (query) => api.get(`${config.interfaces.type3}monitor/intervalPerformance`, query),
  };
}
